const cloud = require('wx-server-sdk')

cloud.init({
  env:'cloud1-2g6vpgs796710242'
})
exports.main = async (event, context) => {
  return await cloud.database().collection('Search_history')
  .where({
    _openid:event.pass_openid,
    subject:event.pass_subject
  })
  .get()
}